package xyz.xpman.prisonerfitness.kit;

import android.content.Context;

import org.jetbrains.annotations.NotNull;

import xyz.xpman.prisonerfitness.util.AlipayUtil;
import xyz.xpman.prisonerfitness.util.ToastUtil;

public enum  DonateKit {
    ;

    private static final String code = "fkx11514tsoffnhjiooyrfc";


    public static void run(@NotNull Context context) {
        if (AlipayUtil.hasInstalledAlipayClient(context)){
            // 第二步获取到的字符串
            AlipayUtil.startAlipayClient(context, code);
        }else{
            ToastUtil.showText(context, "未检测到支付宝，无法实现打赏功能");
        }
    }
}
